package com.pay.game.central.web.service;

import com.github.pagehelper.Page;
import com.pay.game.central.web.bean.PddCustomer;
import com.pay.game.central.web.mapper.PddCustomerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerService {

    @Autowired
    private PddCustomerMapper pddCustomerMapper;

    public List<String> allTel(){
        return  pddCustomerMapper.allTel();
    }

    public Page<PddCustomer> list(String tel, int status){
        return pddCustomerMapper.list(tel, status);
    }

    public void addCustomers(List<PddCustomer> pddCustomers){
        pddCustomerMapper.addCustomers(pddCustomers);
    }
}
